﻿using AutoMapper;
using wisdom_logistics.Dto;
using wisdom_logistics.Entity;

namespace wisdom_logistics
{
    public class wisdom_logisticsApplicationAutoMapperProfile : Profile
    {
        public wisdom_logisticsApplicationAutoMapperProfile()
        {
            /* You can configure your AutoMapper mapping configuration here 您可以在这里配置您的AutoMapper映射配置.
             * Alternatively, you can split your mapping configurations 或者，您可以拆分映射配置
             * into multiple profile classes for a better organization. 进入多个概要文件类，以便更好地组织 */
            CreateMap<PersonnelEntry, PersonDto>();
            CreateMap<CPersonDto, PersonnelEntry>();

            CreateMap<Positive, PositiveDto>();
            CreateMap<CPositiveDto, Positive>();

            CreateMap<Dimission, DimissionDto>();
            CreateMap<CDimissionDto, Dimission>();
        }
    }
}
